#ifndef VTABDATA_H
#define VTABDATA_H

#include <QWidget>
#include <QString>
#include <QList>
#include <Qsci/qscidocument.h>


class VTabData
{
public:
    VTabData(QWidget *widget, QString path, int type);

    enum DocType{
        NORMAL,
        SETTING_ENVIRONMENTAL,
        SETTING_INDENT,
        SETTING_SHORTCUT,
        SETTING_TEXTEDIT_BEHAVIOR,
        SETTING_TEXTEDIT_COLOR,
        SETTING_TOOLS_PATH
    };

    struct ScintillaData
    {
        int _doc_type;
        int _current_pos;
        int _anchot_pos;
        int _first_visible_line;
        uint _last_modify_time;
        bool _modify;
        QList<int> _fold_list;
        QsciDocument *_document;
        bool _read_only;

        bool _jump;
        int _jump_line;
        int _jump_pos;
        bool _jump_select_line;
    };

    ScintillaData _scintilla_data;


    QString _path;
    int _type;
    QWidget *_widget;
};

#endif // VTABDATA_H
